<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">    
    <title>list_cust_REs</title>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  	<s:include value="/include/header.jsp"></s:include>
  	<s:if test="%{#session.userId != null}">
  	<table>
  		<tr>
  		<td><s:text name="Real Estate ID" /></td>
  		<td><s:text name="Owner" /></td>
  		<td><s:text name="Model" /></td>  		
  		</tr>
  	<s:iterator value ="realestateSet"  status="stat" >
  		<tr>
  		<td><a href="<s:url includeParams="none" namespace="/" action="user/details_real_estate" >
  					<s:param name="reId"><s:property value="reId" /></s:param></s:url>">
					<s:property value="reId" />
			</a><br>
  		</td>
  		<td><s:property value="customer.custFullname" />
		</td>
  		<td><s:property value="reType" />
  		</tr>
	</s:iterator>
	</table>
	</s:if>
  <body>
  </body>
</html>
